const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')

module.exports = {
  entry: './main.js',
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: 'bundle.js',
  },
  devtool: 'source-map',
  module: {
    rules: [],
  },
  plugins: [
    // 文档: https://github.com/jaketrent/html-webpack-template
    new HtmlWebpackPlugin({
      title: 'HtmlWebpackPlugin模版',
    }),
  ],
  mode: 'development',
}
